Tubes.Clients = Tubes.Clients or {}
local Clients = Tubes.Clients

Clients.Clients = {}

if CLIENT then
	Clients.Clients ["Server"] = Tubes.Client ("Server")
else
	Tubes:AddEventListener ("PlayerConnected", function (ply, isLocalPlayer)
		Clients.Clients [ply] = Tubes.Client (ply)
	end)

	Tubes:AddEventListener ("PlayerDisconnected", function (ply)
		Clients.Clients [ply]:Drop ()
		Clients.Clients [ply] = nil
	end)
end